package com.logistics.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Ranger on 2015/8/10.
 * <p/>
 * 公司基本信息
 */
@Entity
@Table(name = "company")
public class Company extends BasicEntity {
    /**
     * 公司单位名称
     */
    @Column
    private String companyName;

    /**
     * 联系方式，就是电话号码
     */
    @Column
    private String phoneNumber;

    /**
     * 法人代表姓名
     */
    @Column
    private String corporation;

    /**
     * 公司简介
     */
    @Column
    private String introduction;

    /**
     * 公司属性，取值限制为：“国有企业”、“集体所有制企业”、“私营企业”、“股份制企业”、“联营企业”、
     * “外资投资企业”、“股份合作企业”、“港澳台企业”
     */
    @Column
    private String property;

    /**
     * 公司名称简拼
     */
    @Column
    private String pinyin;

    /**
     * 公司单位代码编号，编码方式无限制，但应该保证唯一
     */
    @Column
    private String code;

    /**
     * 公司成立时间
     */
    @Column
    private Date dateOfFound;

    /**
     * 公司主要业务，不同的业务之间用顿号分隔
     */
    @Column
    private String primaryBusiness;

    public Company() {
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getCorporation() {
        return corporation;
    }

    public void setCorporation(String corporation) {
        this.corporation = corporation;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getDateOfFound() {
        return dateOfFound;
    }

    public void setDateOfFound(Date dateOfFound) {
        this.dateOfFound = dateOfFound;
    }

    public String getPrimaryBusiness() {
        return primaryBusiness;
    }

    public void setPrimaryBusiness(String primaryBusiness) {
        this.primaryBusiness = primaryBusiness;
    }
}
